import {get} from "lodash";

console.log(1);

function initData(target) {
  console.log(target);
  target.annotated = true
}

@initData
class Animal {
  weight = 20

  static staticProp = 'animal'

  constructor(name) {
    this.name = name
  }

  getName() {
    return this.name
  }
}

const obj = {
  a: '1',
  b: {
    name: 'js'
  },
  c: 0,
  d: null
}

function Vue() {

}

const dog = new Animal('dog')
console.log(dog)

let aProp = get(obj, 'a')
let bProp = get(obj, 'b.name')
let cProp = get(obj, 'b.c')
console.log('a-prop: ', aProp, 'b-prop: ', bProp, 'c-prop: ', cProp);
console.log(obj?.a?.b);
console.log(obj.c ?? '1')
console.log(obj.d ?? '2')

